﻿namespace RemotingLibs.TradeClass
{
    /// <summary>
    /// 持仓
    /// </summary>
    public class Position
    {
        /// <summary>
        /// 股票代码
        /// </summary>
        public string StockCode { get; set; }

        /// <summary>
        /// 股票名称
        /// </summary>
        public string StockName { get; set; }

        /// <summary>
        /// 股份昨余
        /// </summary>
        public int StockBalanceYd { get; set; }

        /// <summary>
        /// 实际数量
        /// </summary>
        public int ActualAmount { get; set; }

        /// <summary>
        /// 可卖数量
        /// </summary>
        public int CanSellAmount { get; set; }

        /// <summary>
        /// 今买数量
        /// </summary>
        public int BuyAmountTd { get; set; }

        /// <summary>
        /// 持仓成本价
        /// </summary>
        public decimal Cost { get; set; }

        /// <summary>
        /// 买入均价
        /// </summary>
        public decimal AvgBuyPrice { get; set; }

        /// <summary>
        /// 当前价
        /// </summary>
        public decimal LastPrice { get; set; }

        /// <summary>
        /// 最新市值
        /// </summary>
        public decimal MarketValue { get; set; }

        /// <summary>
        /// 持仓盈亏
        /// </summary>
        public decimal Profit { get; set; }

        /// <summary>
        /// 盈亏比例(%)
        /// </summary>
        public float ProfitProportion { get; set; }

        /// <summary>
        /// 冻结数量
        /// </summary>
        public int FreezeAmount { get; set; }

        /// <summary>
        /// 股东代码
        /// </summary>
        public string SecuId { get; set; }

        /// <summary>
        /// 交易所名称
        /// </summary>
        public string ExchangeName { get; set; }

        /// <summary>
        /// 交易所代码
        /// </summary>
        public string ExchangeId { get; set; }

        /// <summary>
        /// 账户类别
        /// </summary>
        public string AccountType { get; set; }

        /// <summary>
        /// 保留信息
        /// </summary>
        public string Remark { get; set; }
    }
}
